package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author ding
 * @since 2023-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sms")
public class SmsDo extends Model<SmsDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 手机短信id
     */
    @TableField("msg_id")
    private Long msgId;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 发件人
     */
    @TableField("address")
    private String address;

    /**
     * 收件时间
     */
    @TableField("receive_time")
    private Date receiveTime;

    /**
     * 收件时间
     */
    @TableField("pay_time")
    private Date payTime;

    /**
     * 类型/
     */
    @TableField("type")
    private String type;

    /**
     * 到账账户
     */
    @TableField("in_account")
    private String inAccount;

    /**
     * 对方账户
     */
    @TableField("out_account")
    private String outAccount;

    /**
     * 币种id
     */
    @TableField("currency_id")
    private Long currencyId;

    /**
     * 币种
     */
    @TableField("currency")
    private String currency;

    /**
     * 金额 分
     */
    @TableField("amount")
    private Integer amount;

    /**
     * 对方账户
     */
    @TableField("out_account_name")
    private String outAccountName;

    /**
     * 到账账户
     */
    @TableField("in_account_name")
    private String inAccountName;

    @TableField("active_flag")
    private Integer activeFlag;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 充值账户id
     */
    @TableField("recharge_type_id")
    private Long rechargeTypeId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
